package com.ytjj.qmyx.admin.service;

import com.ytjj.common.api.CommonPage;
import com.ytjj.qmyx.admin.model.request.AddProductImgRequest;
import com.ytjj.qmyx.admin.model.request.ProductImgRequest;
import com.ytjj.qmyx.mall.model.ProductImg;

import java.util.List;

public interface ProductImgService {

    CommonPage<ProductImg> list(ProductImgRequest productImgRequest);

    int create(AddProductImgRequest addProductImgRequest);

    int update(ProductImg productImg);

    int delete(Integer id);

    Integer delProductImg(ProductImgRequest productImgRequest);

    List<ProductImg> getAllImg(Integer productId, String type);

}
